package com.zt.chatgpt.auth.service;

import com.zt.chatgpt.auth.model.entity.AuthStateEntity;

/**
 * @author: zt
 * @Description: 鉴权接口
 * @create: 2024-05-18 22:56
 */

public interface IAuthService {

    /**
     * 验证code是否有效
     * @param code
     * @return
     */
    AuthStateEntity doLogin(String code);

    /**
     * 验证token是否有效
     * @param token
     * @return
     */
    boolean checkToken(String token);

    String openid(String token);
}
